# coding:utf-8
# filename: ysy.py
# author by: Face
count = 0
sum = 0.0
for a in range(1,5):
    for b in range(1,5):
        for c in range(1,5):
            if (a != b)and(a != c)and(b != c):
                s = str(a)+str(b)+str(c)
                I = int(s)
                print(I)
                sum += I
                count += 1
print("输出的个数为：",count)
print("平均值为：",sum/count)